<?php

namespace common\jobs\uvs;

use Yii;
use common\jobs\base\BaseJob;
use common\jobs\handle\SpecialUvsExpRewardHandle;

/**
 * 专题成长经验自动发放任务
 *
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class SpecialUvsExpRewardJob extends BaseJob {

    /**
     * @var integer|null 专题ID
     */
    public $special_id = null;

    /**
     * @var integer|null 用户ID
     */
    public $user_id = null;

    /**
     * @param \yii\queue\Queue
     * @inheritdoc
     */
    public function execute($queue) {
        $model = new SpecialUvsExpRewardHandle();
        $model->special_id = $this->special_id;
        $model->user_id = $this->user_id;
        $model->job = $this;
        return $model->save();
    }

}
